<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
?>
		</div>
		<div class="item-right">
			<div class="item-txt">
				<div class="txt-tit"><i class="fa fa-square"></i>众筹进度</div>
				<div class="now-amount">
					目标金额：<strong><?php echo $target_amount;?></strong> <?php echo $coin['en_name'];?>					
<?php
if ($stat == 1) {
?>					<span style="background:green;">进行中</span>
					<?php
}
else if ($stat == 0) {
?>					<span>即将开始</span>
					<?php
}
else if ($stat == 2) {
?>					<span style="background:gray;">已完成</span>
					<?php
}

?>					<div class="clear"></div>
				</div>
				<div class="target-amount">
					<p><strong><?php echo $deal;?></strong> <?php echo $coin['en_name'];?></p>
					目前累计资金
				</div>
				<div class="day">
					<p><?php echo $day;?></p>
					剩余天数
				</div>
				<div class="percent">当前进度：<strong><?php echo $percent;?> %</strong></div>
				<div class="info-bar">
					<div class="info-bar-line" style="width:<?php echo $percent;?>%">
					</div>
				</div>
				<div class="clock">
				<span>0</span>天<span>0</span>时<span>0</span>分<span>0</span>秒
				</div>
				
				
<?php
if ($stat == 1) {
?>				<div class="time-info">
				此项目将在<strong><?php echo date('Y年m月d日H时i分s秒', $end);?></strong>前结束，有任何问题需要咨询请联系客服！
				</div>
				<script>
				$(function(){
					$('.clock').clock('<?php echo date('Y-m-d H:i:s', $end);?>');
				});
				</script>
				<?php
}
else if ($stat == 0) {
?>				<div class="time-info">
				此项目将在<strong><?php echo date('Y年m月d日H时i分s秒', $begin);?></strong>开始，有任何问题需要咨询请联系客服！
				</div>
				<script>
				$(function(){
					$('.clock').clock('<?php echo date('Y-m-d H:i:s', $begin);?>');
				});
				</script>
				<?php
}

?>				
				
				
<?php
if ($stat == 1) {
?>					
<?php
	if ($is_lock == 0) {
?>					<a href="<?php echo site_url('support/index');?>?id=<?php echo $id;?>" class="support-btn">我要支持</a>
					<?php
	}
	else {
?>						
<?php
		if ($is_lock_support == 1) {
?>						<a href="<?php echo site_url('support/index');?>?id=<?php echo $id;?>" class="support-btn">我要支持</a>
						<?php
		}
		else {
?>							
<?php
			if ($is_supported == 0) {
?>							<a href="<?php echo site_url('support/index');?>?id=<?php echo $id;?>" class="support-btn">我要支持</a>
							<?php
			}

?>						<?php
		}

?>					<?php
	}

?>				<?php
}
else {
	if (($stat == 0) && ($is_lock == 1)) {
?>					
<?php
		if ($is_supported == 0) {
?>					<a href="<?php echo site_url('lock/index');?>?id=<?php echo $id;?>" class="support-btn">我要锁定投资</a>
					<?php
		}

?>				<?php
	}
}

?>			</div>
			<div class="ower">
				<div class="ower-tit"><i class="fa fa-square"></i>项目发起人</div>
				<div>
					<div class="ower-img"></div>
					<div class="ower-txt">
						<h3><?php echo $ower['nickname'];?></h3>
						<p>项目负责人</p>
						<p>上次登录时间：<?php echo date('Y-m-d H:i:s', $ower['last_login_time']);?></p>
						<!-- <a href="">发送私信</a> -->
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div class="book">
				<div class="book-img"><i class="fa fa-file-text-o"></i></div>
				<div class="book-txt">
					<h3>项目白皮书</h3>
					<a href="/upload/item/<?php echo $book;?>">点击查看详情</a>
				</div>
				<div class="clear"></div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>